NPM is a NodeJS package manager. So, in order to install and use npm you have to install nodejs first. For Windows there's an installer here: Download | Node.js .

To install nodejs on your local machine, follow these steps (this will also install npm):